import { setLocal, getLocalStorage } from './utils';
const TokenKey = 'token';

export function getToken() {
  return getLocalStorage(TokenKey);
}

export function setToken(token) {
  return setLocal({ [TokenKey]: token });
}

export function removeToken() {
  return localStorage.removeItem(TokenKey);
}

// import { getAppId } from '@/utils/local'; // getAppId()

export function getAppId() {
  return getLocalStorage('appId');
}

export function setAppId(appId) {
  return setLocal({ appId });
}

